package com.shaipicku.mjpegcams;

public class ShapeData {
	public static final int RED = 10, GREEN = 11, BLUE = 12, YELLOW = 13, NOTHING = -1;
	public static final int SQUARE = 1, CIRCLE = 0, TRIANGLE = 2;

	public int color, shape, x, y;

	public ShapeData(int color, int shape, int x, int y){
		this.color = color;
		this.shape = shape;
		this.x = x;
		this.y = y;
	}

	/**
	 * @return the color
	 */
	public int getColor() {
		return color;
	}

	/**
	 * @param color the color to set
	 */
	public void setColor(int color) {
		this.color = color;
	}

	/**
	 * @return the shape
	 */
	public int getShape() {
		return shape;
	}

	/**
	 * @param shape the shape to set
	 */
	public void setShape(int shape) {
		this.shape = shape;
	}

	/**
	 * @return the x
	 */
	public int getX() {
		return x;
	}

	/**
	 * @param x the x to set
	 */
	public void setX(int x) {
		this.x = x;
	}

	/**
	 * @return the y
	 */
	public int getY() {
		return y;
	}

	/**
	 * @param y the y to set
	 */
	public void setY(int y) {
		this.y = y;
	}

	public static String getLabel(int id){
		switch(id){
		case ShapeData.RED:
			return "red";
		case ShapeData.BLUE:
			return "blue";
		case ShapeData.GREEN:
			return "green";
		case ShapeData.YELLOW:
			return "yellow";
		case ShapeData.SQUARE:
			return "square";
		case ShapeData.TRIANGLE:
			return "triangle";
		case ShapeData.CIRCLE:
			return "circle";
		default:
			return "nothing";
		}
	}
}
